package org.base.common.constant;

import lombok.Getter;

/**
 * @author He mingliang
 */
@Getter
public enum SqlCondition {

    /**
     * auto适应场景：
     * String: 使用like查询
     * Number: 使用=号查询
     * 其他: 不支持
     */
    AUTO(""),
    IN(" IN "),
    LIKE(" LIKE "),
    EQ(" = "),
    NE(" <> "),
    GT(" > "),
    GE(" >= "),
    LT(" < "),
    LE(" <= "),
    IS_NULL(" IS NULL "),
    IS_NOT_NULL(" IS NOT NULL ");

    private final String keyword;

    SqlCondition(final String keyword) {
        this.keyword = keyword;
    }
}
